package coreAlgorithm.command;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import coreAlgorithm.NodeTriple;

public class FindNodeResponse extends Response {
	private final List<NodeTriple> responseList;

	public FindNodeResponse(List<NodeTriple> responseList2) {
		super();
		this.responseList = responseList2;
	}
	public List<NodeTriple> getResponseList() {
		return responseList;
	}
	
	@Override
	public Response clone() {
		ArrayList<NodeTriple> newList = new ArrayList<NodeTriple>();
		for (Iterator<NodeTriple> iter = responseList.iterator(); iter.hasNext();) {
			NodeTriple nodeTriple = (NodeTriple) iter.next();
			newList.add(nodeTriple.clone());
		}
		return new FindNodeResponse(newList);
	}
}
